.class public Lorg/microemu/cldc/file/FileSystemRegistryImpl;
.super Ljava/lang/Object;
.source "FileSystemRegistryImpl.java"

# interfaces
.implements Lorg/microemu/cldc/file/FileSystemRegistryDelegate;
.implements Lorg/microemu/microedition/Implementation;


# instance fields
.field private acc:Ljava/security/AccessControlContext;

.field private fsRoot:Ljava/lang/String;

.field private fsSingle:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 47
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 48
    invoke-static {}, Ljava/security/AccessController;->getContext()Ljava/security/AccessControlContext;

    move-result-object v0

    iput-object v0, p0, Lorg/microemu/cldc/file/FileSystemRegistryImpl;->acc:Ljava/security/AccessControlContext;

    .line 49
    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;)V
    .locals 0
    .parameter "fsRoot"
    .parameter "fsSingle"

    .prologue
    .line 52
    invoke-direct {p0}, Lorg/microemu/cldc/file/FileSystemRegistryImpl;-><init>()V

    .line 53
    iput-object p1, p0, Lorg/microemu/cldc/file/FileSystemRegistryImpl;->fsRoot:Ljava/lang/String;

    .line 54
    iput-object p2, p0, Lorg/microemu/cldc/file/FileSystemRegistryImpl;->fsSingle:Ljava/lang/String;

    .line 55
    return-void
.end method

.method static access$000(Lorg/microemu/cldc/file/FileSystemRegistryImpl;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 38
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemRegistryImpl;->fsRoot:Ljava/lang/String;

    return-object v0
.end method

.method static access$100(Lorg/microemu/cldc/file/FileSystemRegistryImpl;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 38
    iget-object v0, p0, Lorg/microemu/cldc/file/FileSystemRegistryImpl;->fsSingle:Ljava/lang/String;

    return-object v0
.end method


# virtual methods
.method public addFileSystemListener(Ljavax/microedition/io/file/FileSystemListener;)Z
    .locals 1
    .parameter "listener"

    .prologue
    .line 72
    const/4 v0, 0x0

    return v0
.end method

.method public listRoots()Ljava/util/Enumeration;
    .locals 2

    .prologue
    .line 58
    invoke-static {}, Lorg/microemu/cldc/file/Connection;->getConnectionType()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 66
    new-instance v0, Ljava/lang/RuntimeException;

    const-string v1, "Invalid connectionType configuration"

    invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 60
    :pswitch_0
    new-instance v0, Lorg/microemu/cldc/file/FileSystemRegistryImpl$1;

    invoke-direct {v0, p0}, Lorg/microemu/cldc/file/FileSystemRegistryImpl$1;-><init>(Lorg/microemu/cldc/file/FileSystemRegistryImpl;)V

    iget-object v1, p0, Lorg/microemu/cldc/file/FileSystemRegistryImpl;->acc:Ljava/security/AccessControlContext;

    invoke-static {v0, v1}, Ljava/security/AccessController;->doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Ljava/util/Enumeration;

    return-object p0

    .line 58
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
    .end packed-switch
.end method

.method public removeFileSystemListener(Ljavax/microedition/io/file/FileSystemListener;)Z
    .locals 1
    .parameter "listener"

    .prologue
    .line 77
    const/4 v0, 0x0

    return v0
.end method
